package com.china08.yxyapi.entity.db.yxy;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.china08.yxyapi.entity.BaseEntityNoId;

@SuppressWarnings("serial")
@Entity
@Table(name = "yxy_event_plan", catalog = "yxy_yxy")
public class YxyEventPlan extends BaseEntityNoId {

    @Id
    @Column(name = "event_id", nullable = false, columnDefinition = "varchar(64) comment '活动id,使用日期+序号例如:2017041901' ")
    private String eventId;

    @Column(name = "event_name", nullable = false, columnDefinition = "varchar(64) comment '活动名称' ")
    private String eventName;

    @Column(name = "event_description", nullable = false, columnDefinition = "varchar(64) comment '活动描述' ")
    private String eventDescription;

    @Column(name = "scope", nullable = false, columnDefinition = "int(11) comment '活动参与范围 1-全国, 0-地区' ")
    private Integer scope;

    @Column(name = "area_code", columnDefinition = "varchar(128) comment '活动参与范围 1-全国, 0-地区' ")
    private String areaCode;

    @Column(name = "area_name", columnDefinition = "varchar(256) comment '活动参与范围 1-全国, 0-地区' ")
    private String areaName;

    @Column(name = "begin_date", nullable = false, columnDefinition = "Date comment '节假日描述' ")
    private Date beginDate;

    @Column(name = "end_date", nullable = false, columnDefinition = "Date comment '节假日描述' ")
    private Date endDate;

    @Column(name = "status", nullable = false, columnDefinition = "int(11) comment '状态0:作废 1:有效' ")
    private Integer status;

    public String getEventId() {
        return eventId;
    }

    public void setEventId(String eventId) {
        this.eventId = eventId;
    }

    public String getEventName() {
        return eventName;
    }

    public void setEventName(String eventName) {
        this.eventName = eventName;
    }

    public String getEventDescription() {
        return eventDescription;
    }

    public void setEventDescription(String eventDescription) {
        this.eventDescription = eventDescription;
    }

    public Integer getScope() {
        return scope;
    }

    public void setScope(Integer scope) {
        this.scope = scope;
    }

    public String getAreaCode() {
        return areaCode;
    }

    public void setAreaCode(String areaCode) {
        this.areaCode = areaCode;
    }

    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    public Date getBeginDate() {
        return beginDate;
    }

    public void setBeginDate(Date beginDate) {
        this.beginDate = beginDate;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

}
